DEB Debian message
Table of Content
DEB Debian message#
A Debian package is the simplest and most efficient way of distributing software in Debian-based distributions. It takes care of managing dependencies and provides a good interface for install/upgrade/uninstall operations.
Demo#
Pack python application
deb
└── build
└── test
├── DEBIAN
│ ├── control
│ ├── postinst
│ └── preinst
└── tmp
└── py_gui_demo-0.0.1-py3-none-any.whl
DEBIAN/control
Package: test
Version: 1.0-5
Section: utils
Priority: optional
Architecture: all
Maintainer: robobe <test@test.com>
Description: Python GUI application base on PySimpleGui
Depends: python3-tk
DEBIAN/postinst
#!/bin/bash
echo post >> /tmp/test
pip install /tmp/py_gui_demo-0.0.1-py3-none-any.whl
DEBIAN/preinst
#!/bin/bash
echo pre >> /tmp/test
Install / usage#
Using apt to install the deb package and all it’s dependencies
apt install
sudo apt --fix-broken install ./test.deb